Two-Dimensional Range Minimum Queries
نویسندگان
چکیده
We consider the two-dimensional Range Minimum Query problem: for a static (m × n)-matrix of size N = mn which may be preprocessed, answer on-line queries of the form “where is the position of a minimum element in an axis-parallel rectangle?”. Unlike the onedimensional version of this problem which can be solved in provably optimal time and space, the higher-dimensional case has received much less attention. The only result we are aware of is due to Gabow, Bentley and Tarjan [1], who solve the problem in O(N logN) preprocessing time and space andO(logN) query time. We present a class of algorithms which can solve the 2-dimensional RMQ-problem with O(kN) additional space, O(N log N) preprocessing time and O(1) query time for any k > 1, where log denotes the iterated application of k + 1 logarithms. The solution converges towards an algorithm with O(N log∗ N) preprocessing time and space and O(1) query time. All these algorithms are significant improvements over the previous results: query time is optimal, preprocessing time is quasi-linear in the input size, and space is linear. While this paper is of theoretical nature, we believe that our algorithms will turn out to have applications in different fields of computer science, e.g., in computational biology.
منابع مشابه
Two Dimensional Range Minimum Queries and Fibonacci Lattices
Given a matrix of size N , two dimensional range minimum queries (2D-RMQs) ask for the position of the minimum element in a rectangular range within the matrix. We study trade-offs between the query time and the additional space used by indexing data structures that support 2D-RMQs. Using a novel technique—the discrepancy properties of Fibonacci lattices—we give an indexing data structure for 2...
متن کاملSpace-Efficient Data-Analysis Queries on Grids
We consider various data-analysis queries on two-dimensional points. We give new space/time tradeoffs over previous work on geometric queries such as dominance and rectangle visibility, and on semigroup and group queries such as sum, average, variance, minimum and maximum. We also introduce new solutions to queries less frequently considered in the literature such as two-dimensional quantiles, ...
متن کاملThe Encoding Complexity of Two Dimensional Range Minimum Data Structures
In the two-dimensional range minimum query problem an input matrix A of dimension m× n, m ≤ n, has to be preprocessed into a data structure such that given a query rectangle within the matrix, the position of a minimum element within the query range can be reported. We consider the space complexity of the encoding variant of the problem where queries have access to the constructed data structur...
متن کاملRoogle: Supporting Efficient High-Dimensional Range Queries in P2P Systems
Multi-dimensional range query is an important query type and especially useful when the user doesn’t know exactly what he is looking for. However, due to improper indexing method and high routing latency, existing schemes cannot perform well under high-dimensional situations. In this paper, we propose Roogle, a decentralized non-flooding P2P search engine that can efficiently support high-dimen...
متن کاملExternal Memory Three-Sided Range Reporting and Top-k Queries with Sublogarithmic Updates
An external memory data structure is presented for maintaining a dynamic set ofN two-dimensional points under the insertion and deletion of points, and supporting unsorted 3-sided range reporting queries and top-k queries, where top-k queries report the k points with highest y-value within a given x-range. For any constant 0 < ε ≤ 1 2 , a data structure is constructed that supports updates in a...
متن کامل